<script>
	import Vue from 'vue' 
	export default {
		 globalData: {
		            text: '中文',
					languange:'Chinese',
		        },
		data() {
			return {
				user_info: '', //登录用户信息
				navheight:'',//导航高度
			}
		},
		onShow() {
			let that = this
			// 获取系统信息
			const systemInfo = wx.getSystemInfoSync();
			// 胶囊按钮位置信息
			const menuButtonInfo = wx.getMenuButtonBoundingClientRect();
			that.navheight = (menuButtonInfo.top - systemInfo.statusBarHeight) * 2 + menuButtonInfo.height + systemInfo.statusBarHeight + 6;
			that.sysWidth = systemInfo.windowWidth
			Vue.prototype.$navheight = that.navheight;
			Vue.prototype.$sysWidth = that.sysWidth;
			// console.log(systemInfo,'系统信息')
			// console.log(menuButtonInfo)
			// console.log(that.navheight)
		},
		mounted() {
		
		},
		onLaunch() {
		},

		onHide: function() {
			// console.log('App Hide')
		},
		methods: {

		},
	}
</script>

<style>
	@import "common/common.css";

	/*每个页面公共css */
	page {
		height: 100%;
		background-color: rgba(243,246,249,1);
		font-family: PingFang-SC-Regular;
		box-sizing: border-box;
	}
</style>
